package com.dxl.bean.account;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import com.dxl.common.json.JsonDateTimeSerializer;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

@JsonInclude(Include.NON_NULL) 
public class RoleNode {
	/**
	 * 主键ID
	 */
	private String id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 操作人
	 */
	private String operator;
	private String state;
	/**
	 * 状态，见State
	 */
	private Integer rowState;
	/**
	 * 创建时间
	 */
	@JsonSerialize(using=JsonDateTimeSerializer.class)
	@DateTimeFormat(iso=ISO.DATE_TIME, pattern="yyyy-MM-dd HH:mm:ss")
	private Date createdTime;
	/**
	 * 更新时间
	 */
	@JsonSerialize(using=JsonDateTimeSerializer.class)
	@DateTimeFormat(iso=ISO.DATE_TIME, pattern="yyyy-MM-dd HH:mm:ss")
	private Date updatedTime; // 更新时间
	
	private List<RoleNode> children;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Integer getRowState() {
		return rowState;
	}

	public void setRowState(Integer rowState) {
		this.rowState = rowState;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public List<RoleNode> getChildren() {
		return children;
	}

	public void setChildren(List<RoleNode> children) {
		this.children = children;
	}
}
